<?php /* Smarty version 2.6.12, created on 2008-10-30 12:57:32
         compiled from admin/main/edit_dir.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'admin/main/edit_dir.tpl', 4, false),array('modifier', 'amp', 'admin/main/edit_dir.tpl', 62, false),array('modifier', 'truncate', 'admin/main/edit_dir.tpl', 64, false),array('modifier', 'strip_tags', 'admin/main/edit_dir.tpl', 106, false),array('modifier', 'substitute', 'admin/main/edit_dir.tpl', 157, false),)), $this); ?>
<?php func_load_lang($this, "admin/main/edit_dir.tpl","txt_delete_file_warning,txt_restore_templates_warning,txt_compile_templates_warning,lbl_browse_files,txt_browse_files_top_text,lbl_browse_templates,txt_browse_templates_top_text,txt_using_debug_console_note,lbl_config_file,lbl_css_file,lbl_buttons,lbl_help_files,lbl_error_messages,lbl_mail_templates,lbl_today_news,lbl_delete_selected,lbl_create_new_file,lbl_new_filename,lbl_create,lbl_create_new_directory,lbl_new_directory_name,lbl_create,copy_selected_file_to_,lbl_copy_file_name,lbl_copy,lbl_upload_file_to_directory,lbl_upload,lbl_rewrite_file_if_exists,txt_max_file_size_warning,txt_restore_templates_text,txt_restore_templates_note,lbl_restore_all,txt_compile_templates,lbl_compile_templates,lbl_language,txt_compile_templates_note,txt_directory_is_not_writable,lbl_browse_files,lbl_browse_templates"); ?><script type="text/javascript">
<!--
var txt_delete_file_warning = "<?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_delete_file_warning'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
";
var txt_restore_templates_warning = "<?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_restore_templates_warning'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
";
var txt_compile_templates_warning = "<?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_compile_templates_warning'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
";
-->
</script>
<?php if (( $this->_tpl_vars['what_to_edit'] == 'files' )): ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "page_title.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_browse_files'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo $this->_tpl_vars['lng']['txt_browse_files_top_text']; ?>


<?php else: ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "page_title.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_browse_templates'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo $this->_tpl_vars['lng']['txt_browse_templates_top_text']; ?>


<?php if ($GLOBALS['HTTP_GET_VARS']['dir'] == ""): ?>

<br /><br />

<?php echo $this->_tpl_vars['lng']['txt_using_debug_console_note']; ?>


<br /><br />

<img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/rarrow.gif" width="9" height="9" alt="" /> <a href="<?php echo $this->_tpl_vars['action_script']; ?>
?dir=&amp;file=%2F<?php echo $this->_tpl_vars['skin_config']; ?>
"><?php echo $this->_tpl_vars['lng']['lbl_config_file']; ?>
 (<?php echo $this->_tpl_vars['skin_config']; ?>
)</a><br />
<img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/rarrow.gif" width="9" height="9" alt="" /> <a href="<?php echo $this->_tpl_vars['action_script']; ?>
?dir=&amp;file=%2F<?php echo $this->_config[0]['vars']['CSSFile']; ?>
"><?php echo $this->_tpl_vars['lng']['lbl_css_file']; ?>
 (<?php echo $this->_config[0]['vars']['CSSFile']; ?>
)</a><br />
<img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/rarrow.gif" width="9" height="9" alt="" /> <a href="<?php echo $this->_tpl_vars['action_script']; ?>
?dir=%2Fbuttons"><?php echo $this->_tpl_vars['lng']['lbl_buttons']; ?>
</a><br />
<img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/rarrow.gif" width="9" height="9" alt="" /> <a href="<?php echo $this->_tpl_vars['action_script']; ?>
?dir=%2Fhelp"><?php echo $this->_tpl_vars['lng']['lbl_help_files']; ?>
</a><br />
<img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/rarrow.gif" width="9" height="9" alt="" /> <a href="<?php echo $this->_tpl_vars['action_script']; ?>
?dir=%2Fmain"><?php echo $this->_tpl_vars['lng']['lbl_error_messages']; ?>
</a><br />
<img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/rarrow.gif" width="9" height="9" alt="" /> <a href="<?php echo $this->_tpl_vars['action_script']; ?>
?dir=%2Fmail"><?php echo $this->_tpl_vars['lng']['lbl_mail_templates']; ?>
</a><br />
<img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/rarrow.gif" width="9" height="9" alt="" /> <a href="<?php echo $this->_tpl_vars['action_script']; ?>
?dir=&amp;file=%2Ftoday_news.tpl"><?php echo $this->_tpl_vars['lng']['lbl_today_news']; ?>
</a>

<?php endif; ?>

<?php endif; ?>

<br /><br />

<?php ob_start(); ?>

<form method="post" action="<?php echo $this->_tpl_vars['action_script']; ?>
" name="fm_form" enctype="multipart/form-data">

<input type="hidden" name="dir" value="<?php if ($GLOBALS['HTTP_GET_VARS']['dir'] != ""):  echo ((is_array($_tmp=$GLOBALS['HTTP_GET_VARS']['dir'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  else:  echo ((is_array($_tmp=$GLOBALS['HTTP_POST_VARS']['dir'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  endif; ?>" />
<input type="hidden" name="mode" />
<input type="hidden" name="MAX_FILE_SIZE" value="500000000" />
<input type="hidden" name="my_files" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['my_files'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />

<table cellpadding="3" cellspacing="1" width="100%">

<tr valign="top">
	<td width="50%">

<table cellspacing="0" cellpadding="2">
<?php unset($this->_sections['dir_entry']);
$this->_sections['dir_entry']['name'] = 'dir_entry';
$this->_sections['dir_entry']['loop'] = is_array($_loop=$this->_tpl_vars['dir_entries']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['dir_entry']['show'] = true;
$this->_sections['dir_entry']['max'] = $this->_sections['dir_entry']['loop'];
$this->_sections['dir_entry']['step'] = 1;
$this->_sections['dir_entry']['start'] = $this->_sections['dir_entry']['step'] > 0 ? 0 : $this->_sections['dir_entry']['loop']-1;
if ($this->_sections['dir_entry']['show']) {
    $this->_sections['dir_entry']['total'] = $this->_sections['dir_entry']['loop'];
    if ($this->_sections['dir_entry']['total'] == 0)
        $this->_sections['dir_entry']['show'] = false;
} else
    $this->_sections['dir_entry']['total'] = 0;
if ($this->_sections['dir_entry']['show']):

            for ($this->_sections['dir_entry']['index'] = $this->_sections['dir_entry']['start'], $this->_sections['dir_entry']['iteration'] = 1;
                 $this->_sections['dir_entry']['iteration'] <= $this->_sections['dir_entry']['total'];
                 $this->_sections['dir_entry']['index'] += $this->_sections['dir_entry']['step'], $this->_sections['dir_entry']['iteration']++):
$this->_sections['dir_entry']['rownum'] = $this->_sections['dir_entry']['iteration'];
$this->_sections['dir_entry']['index_prev'] = $this->_sections['dir_entry']['index'] - $this->_sections['dir_entry']['step'];
$this->_sections['dir_entry']['index_next'] = $this->_sections['dir_entry']['index'] + $this->_sections['dir_entry']['step'];
$this->_sections['dir_entry']['first']      = ($this->_sections['dir_entry']['iteration'] == 1);
$this->_sections['dir_entry']['last']       = ($this->_sections['dir_entry']['iteration'] == $this->_sections['dir_entry']['total']);
?>

<tr>
<?php if ($this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['filetype'] == 'dir'): ?>
	<td><input type="radio" name="filename"<?php if ($this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'] == ".."): ?> disabled="disabled"<?php endif; ?> value="<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['href'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
" /></td>
	<td><a href="<?php echo $this->_tpl_vars['action_script']; ?>
?dir=<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['href'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url')); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
"><img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/folder.gif" width="16" height="16" alt="" /></a></td>
	<td><a href="<?php echo $this->_tpl_vars['action_script']; ?>
?dir=<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['href'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url')); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 35) : smarty_modifier_truncate($_tmp, 35)))) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
/</a></td>

<?php elseif (( $this->_tpl_vars['what_to_edit'] == 'files' )): ?>

	<td><input type="radio" name="filename" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['href'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
" /></td>
	<td><a href="getfile.php?file=<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['href'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url')); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
"><img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/doc.gif" width="16" height="16" alt="" /></a></td>
	<td><a href="getfile.php?file=<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['href'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url')); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 35) : smarty_modifier_truncate($_tmp, 35)))) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
</a></td>

<?php else: ?>

	<td><input type="radio" name="filename" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['href'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
" /></td>
	<td><a href="<?php echo $this->_tpl_vars['action_script']; ?>
?dir=<?php echo ((is_array($_tmp=$GLOBALS['HTTP_GET_VARS']['dir'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url')); ?>
&amp;file=<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['href'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url')); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
"><img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/doc.gif" width="16" height="16" alt="" /></a></td>
	<td><a href="<?php echo $this->_tpl_vars['action_script']; ?>
?dir=<?php echo ((is_array($_tmp=$GLOBALS['HTTP_GET_VARS']['dir'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url')); ?>
&amp;file=<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['href'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url')); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 35) : smarty_modifier_truncate($_tmp, 35)))) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
</a></td>

<?php endif; ?>
</tr>

<?php if (( $this->_sections['dir_entry']['index'] == $this->_tpl_vars['dir_entries_half'] )): ?>
</table>

	</td>
	<td width="50%">

<table cellspacing="0" cellpadding="2">
<?php endif; ?>

<?php endfor; endif; ?>

</table>

	</td>
</tr>
</table>

<hr width="100%" align="center" />

<?php if ($this->_tpl_vars['is_writeable']): ?>

<table cellpadding="3" cellspacing="1">

<tr>
	<td colspan="4">
	<input type="button" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_delete_selected'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onclick='javascript: if (confirm(txt_delete_file_warning)) submitForm(this, "Delete");' />
	</td>
</tr>

<?php if (( $this->_tpl_vars['what_to_edit'] != 'files' )): ?>
<tr>
	<td colspan="4"><br /><br /><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/subheader.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_create_new_file'],'class' => 'grey')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
</tr>

<tr>
	<td class="FormButton" nowrap="nowrap"><?php echo $this->_tpl_vars['lng']['lbl_new_filename']; ?>
:</td>
	<td><input type="text" size="40" name="new_file" value="" /></td>
	<td colspan="2"><input type="button" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_create'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onclick='javascript: submitForm(this, "New file");' /></td>
</tr>
<?php endif; ?>

<tr>
	<td colspan="4"><br /><br /><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/subheader.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_create_new_directory'],'class' => 'grey')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
</tr>

<tr>
	<td class="FormButton" nowrap="nowrap"><?php echo $this->_tpl_vars['lng']['lbl_new_directory_name']; ?>
:</td>
	<td><input type="text" size="40" name="new_directory" value="" /></td>
	<td colspan="2"><input type="button" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_create'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onclick='javascript: submitForm(this, "New directory");' /></td>
</tr>

<tr>
	<td colspan="4"><br /><br /><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/subheader.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['copy_selected_file_to_'],'class' => 'grey')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
</tr>

<tr>
	<td class="FormButton" nowrap="nowrap"><?php echo $this->_tpl_vars['lng']['lbl_copy_file_name']; ?>
:</td>
	<td><input type="text" size="40" name="copy_file" value="" /></td>
	<td colspan="2"><input type="button" value=" <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_copy'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
 " onclick='javascript: submitForm(this, "Copy to");' /></td>
</tr>

<tr>
	<td colspan="4"><br /><br /><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/subheader.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_upload_file_to_directory'],'class' => 'grey')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
</tr>

<tr>
	<td colspan="2"><input type="file" size="50" name="userfile" /></td>
	<td><input type="button" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_upload'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onclick='javascript: document.fm_form.mode.value = "Upload"; document.fm_form.submit();' /></td>
	<td>
<input type="checkbox" id="rewrite_if_exists" name="rewrite_if_exists" value="Y" checked="checked" />
<label for="rewrite_if_exists"><?php echo $this->_tpl_vars['lng']['lbl_rewrite_file_if_exists']; ?>
</label>
	</td>
</tr>

<?php if ($this->_tpl_vars['upload_max_filesize']): ?>
<tr>
	<td colspan="3"><?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_max_file_size_warning'])) ? $this->_run_mod_handler('substitute', true, $_tmp, 'size', $this->_tpl_vars['upload_max_filesize']) : smarty_modifier_substitute($_tmp, 'size', $this->_tpl_vars['upload_max_filesize'])); ?>
</td>
</tr>
<?php endif; ?>

</table>

</form>

<?php if ($this->_tpl_vars['what_to_edit'] == 'templates' && $GLOBALS['HTTP_GET_VARS']['dir'] == ""): ?>

<form method="post" action="<?php echo $this->_tpl_vars['action_script']; ?>
" name="rc_form">

<input type="hidden" name="mode" />

<?php echo $this->_tpl_vars['lng']['txt_restore_templates_text']; ?>


<br />

<?php echo $this->_tpl_vars['lng']['txt_restore_templates_note']; ?>


<br />

<input type="button" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_restore_all'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onclick='javascript: if (confirm(txt_restore_templates_warning)) { document.rc_form.mode.value = "restore_all"; document.rc_form.submit(); }' />

<br /><br />

<?php echo $this->_tpl_vars['lng']['txt_compile_templates']; ?>


<br /><br />

<input type="button" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_compile_templates'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onclick='javascript: if (confirm(txt_compile_templates_warning)) { document.rc_form.mode.value = "compile_all"; document.rc_form.submit (); }' />
&nbsp;
<?php echo $this->_tpl_vars['lng']['lbl_language']; ?>
:
<select name="language">
<?php unset($this->_sections['li']);
$this->_sections['li']['name'] = 'li';
$this->_sections['li']['loop'] = is_array($_loop=$this->_tpl_vars['languages']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['li']['show'] = true;
$this->_sections['li']['max'] = $this->_sections['li']['loop'];
$this->_sections['li']['step'] = 1;
$this->_sections['li']['start'] = $this->_sections['li']['step'] > 0 ? 0 : $this->_sections['li']['loop']-1;
if ($this->_sections['li']['show']) {
    $this->_sections['li']['total'] = $this->_sections['li']['loop'];
    if ($this->_sections['li']['total'] == 0)
        $this->_sections['li']['show'] = false;
} else
    $this->_sections['li']['total'] = 0;
if ($this->_sections['li']['show']):

            for ($this->_sections['li']['index'] = $this->_sections['li']['start'], $this->_sections['li']['iteration'] = 1;
                 $this->_sections['li']['iteration'] <= $this->_sections['li']['total'];
                 $this->_sections['li']['index'] += $this->_sections['li']['step'], $this->_sections['li']['iteration']++):
$this->_sections['li']['rownum'] = $this->_sections['li']['iteration'];
$this->_sections['li']['index_prev'] = $this->_sections['li']['index'] - $this->_sections['li']['step'];
$this->_sections['li']['index_next'] = $this->_sections['li']['index'] + $this->_sections['li']['step'];
$this->_sections['li']['first']      = ($this->_sections['li']['iteration'] == 1);
$this->_sections['li']['last']       = ($this->_sections['li']['iteration'] == $this->_sections['li']['total']);
?>
<option value="<?php echo $this->_tpl_vars['languages'][$this->_sections['li']['index']]['code']; ?>
"><?php echo $this->_tpl_vars['languages'][$this->_sections['li']['index']]['language']; ?>
</option>
<?php endfor; endif; ?>
</select>

<br /><br />

<?php echo $this->_tpl_vars['lng']['txt_compile_templates_note']; ?>


<br />

</form>

<?php endif; ?>

<?php else: ?>

<?php echo $this->_tpl_vars['lng']['txt_directory_is_not_writable']; ?>


<?php endif; ?>

<?php $this->_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean(); ?>

<?php if (( $this->_tpl_vars['what_to_edit'] == 'files' )):  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_browse_files'],'content' => $this->_smarty_vars['capture']['dialog'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  else:  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_browse_templates'],'content' => $this->_smarty_vars['capture']['dialog'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
